BIN=blockqueue
CC=g++
LOADFLAG1=-o
LOADFLAG2=-c
LOAD=-std=c++11
SRC=$(wildcard *.cc)
OBJ=$(SRC:.cc=.o)

$(BIN):$(OBJ)
	$(CC) $(LOADFLAG1) $@ $^ -lpthread
%.o:%.cc
	$(CC) $(LOADFLAG2) $< $(LOAD)

.PHONY:clean
clean:
	rm -f $(BIN) $(OBJ)